<template>
	<uni-popup ref="popup" type="bottom" :mask-click="false" :is-mask-click="false" border-radius="40rpx 40rpx 0 0">
		<view class="inner-box">
			<view class="title-box">
				<uni-icons class="icon-close" @tap="close" type="closeempty" size="30"></uni-icons>
				<view class="title">
					公司相册
				</view>
			</view>
			<view class="company-box">
				<view class="company-item">
					<view class="title">
						公司照片
					</view>
					<uv-album :urls="urls" multipleSize="210rpx" maxCount="100" singleSize="210rpx"
						space="8rpx"></uv-album>
				</view>
				<view class="company-item">
					<view class="title">
						工作环境
					</view>
					<uv-album :urls="urls" multipleSize="210rpx" maxCount="100" singleSize="210rpx"
						space="8rpx"></uv-album>
				</view>
			</view>
		</view>
	</uni-popup>
</template>

<script>
	import {
		mapState,
		mapGetters
	} from 'vuex';
	export default {
		data() {
			return {
				urls: [
					'https://via.placeholder.com/100x200.png/3c9cff/fff',
					'https://via.placeholder.com/200x200.png/3c9cff/fff',
					'https://via.placeholder.com/300x200.png/3c9cff/fff',
					'https://via.placeholder.com/280x200.png/3c9cff/fff',
					'https://via.placeholder.com/240x200.png/3c9cff/fff',
					'https://via.placeholder.com/180x200.png/3c9cff/fff'
				]
			}
		},
		methods: {
			close() {
				this.$refs.popup.close()
			},
			open() {
				this.$refs.popup.open()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.inner-box {
		background: #FFFFFF;
		padding: 0 39rpx;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
		overflow: hidden;

		.title-box {
			padding-top: 49rpx;
			display: flex;
			align-items: center;
			margin-bottom: 51rpx;

			.icon-close {}

			.title {
				margin-left: 212rpx;
				font-weight: 800;
				font-size: 40rpx;
				color: #111111;
			}
		}

		.company-box {
			height: 80vh;
			overflow-y: auto;
			.company-item {
				margin-bottom: 40rpx;

				.title {
					font-weight: 800;
					font-size: 40rpx;
					color: #111111;
					margin-bottom: 40rpx;
				}
			}
		}


	}
</style>